package com.cn.wx.dao;

import com.cn.wx.model.NewsModel;
import com.cn.wx.model.UserModel;

import java.util.List;

public interface NewsDao {
    List<NewsModel> getAll(Integer pageSize, Integer pageNum);
    int count(String string);
    NewsModel getUserById(Integer id);
    int update(NewsModel newsModel);
    int delete(Integer id);
    int add(NewsModel newsModel);
}
